package com.code.day19;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;

public class Demo02LinkedHashMap {
    public static void main(String[] args) {
        LinkedHashMap<String,String> map = new LinkedHashMap<>();
        map.put("郭靖","黄蓉");
        map.put("杨过","小龙女");
        map.put("杨过", "郭襄");
        System.out.println(map);
        Collection<String> collection = map.values();
        for (String s : collection) {
            System.out.println(s);
        }
    }
}
